﻿using System.Text.RegularExpressions;

namespace BDRUtils.Extensions
{
    /// <summary>
    /// 正则表达式扩展类
    /// </summary>
    public static class RegularExtension
    {
        /// <summary>
        /// 是否包含特殊字符
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static bool IsSpecialChars(this string value)
        {
            return Regex.IsMatch(value, @"[^0-9a-zA-Z\u4e00-\u9fa5]");
        }
    }
}
